package com.zxf.orderservice.feign.fallback;

import com.zxf.orderservice.feign.CreateService;
import org.springframework.stereotype.Component;

@Component
public class CreditServiceFallBack implements CreateService {


    public String addCredit(Long userId, Integer creditCount) {
        System.out.println("调用积分服务失败,记录日志降级处理：userID="+userId+",creditCount="+creditCount);
        return "error";
    }
}
